package com.xszx.knowledge.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文档
 * </p>
 *
 * @author wencai
 * @since 2023/04/25 10:29
 */

public class Doc implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long id;


    @TableField("ebook_id")
    private Long ebookId;

    public Doc() {
    }

    public Doc(Long ebookId) {
        this.ebookId = ebookId;
    }

    private Long parent;


    private String name;


    private Integer sort;


    @TableField("view_count")
    private Integer viewCount;


    @TableField("vote_count")
    private Integer voteCount;

    public Doc(Long id, Long ebookId, Long parent, String name, Integer sort) {
        this.id = id;
        this.ebookId = ebookId;
        this.parent = parent;
        this.name = name;
        this.sort = sort;
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getEbookId() {
        return ebookId;
    }

    public void setEbookId(Long ebookId) {
        this.ebookId = ebookId;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getVoteCount() {
        return voteCount;
    }

    public void setVoteCount(Integer voteCount) {
        this.voteCount = voteCount;
    }
}
